<?php
$title = 'Les utilisateurs';
$this->headTitle($title);
?>
<h3><?php echo $title; ?></h3>
<p>
	<a href="<?php echo $this->url('user', array('action'=>'add'));?>">Add new user</a>
</p>
<table class="table">
	<tr>
		<th>ID</th>
		<th>Id_personnel</th>
		<th>User_name</th>
		<th>Password</th>
		<th>Email</th>
		<th>Avatar</th>
		<th>Is admin</th>
		<th>Is blocked</th>
		<th>Date d'inscription</th>
		
		<th>&nbsp;</th>
	</tr>

	
<?php foreach($utilisateurs as $user) : ?>
	
<tr>
		<td><?php echo $user->id_user;?></td>
		<td><?php echo $user->id_personnel;?></td>
		<td><?php echo $user->username;?></td>
		<td><?php echo $user->password;?></td>
		<td><?php echo $user->email;?></td>
		<td><?php echo $user->avatar;?></td>
		<td><?php echo $user->isadmin;?></td>
		<td><?php echo $user->isblocked;?></td>
		<td><?php echo $user->signup_date;?></td>
		
		<td><a
			href="<?php echo $this->url('user', array('action'=>'edit', 'id' => $user->id_user));?>">Edit</a>
<a href="<?php echo $this->url('user', array('action'=>'delete', 'id' => $user->id_user));?>">Delete</a>
</td>
</tr>
<?php endforeach; ?>
</table>